﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using myapp.specifications;

namespace myapp.wiring
{
    public class MainBoard
    {
        private IPortal portal;
        private IStopuhr stopuhr;

        public MainBoard(IPortal portal, IStopuhr stopuhr)
        {
            this.portal = portal;
            this.stopuhr = stopuhr;

            portal.Out_Start += stopuhr.In_Start;
            portal.Out_Stop += stopuhr.In_Stop;
            portal.Out_GestoppteZeit += stopuhr.In_GestoppteZeit;

            stopuhr.Out_Zeitfortschritt += portal.In_Zeitfortschritt;
        }
    }
}
